<?

	class Login_model extends CI_Model {
		
		public function autenticar($login, $password)
		{
		
			$sql = "SELECT * FROM usuario WHERE login = '$login' AND senha = '$password'";
			$query = $this->db->query($sql);
			
			if($query->num_rows()>0){
				return $query->result();
			}
			else {
				return false;
			}
		}
		
	}
	